@use '../variables';
@use '../mixins';

@include mixins.b(component-route) {
  @include mixins.e(subtitle) {
    margin-left: 12px;
  }

  @include mixins.e(tag-list) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;

    @include mixins.polyfill-gap(8px, 8px);
  }

  @include mixins.e(tag-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font: inherit;
    font-family:
      'IBM Plex Sans',
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      Roboto,
      'Helvetica Neue',
      Arial,
      sans-serif,
      'Apple Color Emoji',
      'Segoe UI Emoji',
      'Segoe UI Symbol';
    font-weight: var(--#{variables.$prefix}font-weight-bold);
    line-height: 24px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--#{variables.$prefix}color-border);
    border-radius: var(--#{variables.$prefix}border-radius);
    transition: background-color var(--#{variables.$prefix}animation-duration-base) linear;

    @include mixins.polyfill-column-gap(4px);

    &:hover {
      background-color: var(--#{variables.$prefix}background-color-hover);
    }
  }
}
